I think this was just copied from another command without paying
attention to what it did, because there does not seem to be any valid
reason to want to only unannex some files when running uninit.
cmd = addCheck check $
command "uninit" SectionUtility
"de-initialize git-annex and clean out repository"
- paramPaths (withParams seek)
+ paramNothing (withParams seek)
check :: Annex ()
check = do
revhead = inRepo $ Git.Command.pipeReadStrict
[Param "rev-parse", Param "--abbrev-ref", Param "HEAD"]
-seek :: CmdParams -> CommandSeek
-seek ps = do
- l <- workTreeItems ww ps
+seek :: CommandParams -> CommandSeek
+seek = withNothing $ do
+ l <- workTreeItems ww []
withFilesNotInGit
(CheckGitIgnore False)
(WarnUnmatchWorkTreeItems "uninit")